remove_all_copy

function remove_all_copy(values: collection<-T>): list<T>

Returns a new list whose elements are those found in this list and not in the given collection.

a.remove_all_copy(b) is equivalent to a - b, where a and b are lists.

Examples:

  • [1].remove_all_copy([1]) returns []

  • [1].remove_all_copy([2]) returns [1]

  • [1, 2, 3, 5].remove_all_copy([2, 3, 4]) returns [1, 5]

Since

0.14.16

Parameters

values

the other collection